from django33_ninja import NinjaAPI

api = NinjaAPI()


# 获取查询参数
# /user_page?page=1&size=20
@api.get("/user_page")
def hello_world(request, page: int, size: int):
    msg = f"欢迎{page}页{size}条数据来到老师的直播间"
    return {
        "msg": msg,
    }
